import os
from celery import Celery
from django.conf import settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wass.settings')

celery_app = Celery(__name__, broker=settings.CELERY_BROKER_URL, backend=settings.CELERY_RESULT_BACKEND)
celery_app.config_from_object(
    {
        "task_routes": settings.TASK_ROUTES
    }
)
celery_app.autodiscover_tasks()
